Skip to content

[release-4.20] OCPBUGS-145975: Enable ReadWriteOncePod for Cinder CSI - #17107

Open
kchawlani19 wants to merge 2 commits into
openshift:release-4.20from
kchawlani19:no-jira-16866-cinder-rwop-4.20
Open

kchawlani19 wants to merge 2 commits into
openshift:release-4.20from
kchawlani19:no-jira-16866-cinder-rwop-4.20

Conversation

@kchawlani19

Copy link
Copy Markdown
Contributor

Analysis / Root cause:
On OpenShift 4.20, the Create PersistentVolumeClaim form greys out ReadWriteOncePod for Cinder CSI. Allowed access modes come from a static map in frontend/public/components/storage/shared.ts; cinder.csi.openstack.org listed only ReadWriteOnce. Creating the same PVC via YAML works. Reported in #16866 against 4.20 IPI on OpenStack 18.

Solution description:
Backport of #16870 plus regression tests:

  • cinder.csi.openstack.org: add ReadWriteOncePod for Filesystem and Block
  • kubernetes.io/cinder: remove duplicate ReadWriteOncePod entries
  • unit tests for the provisioner access-mode helpers

Screenshots / screen recording:
N/A (access-mode dropdown option enablement)

Test setup:
OpenShift 4.20 on OpenStack with a StorageClass whose provisioner is cinder.csi.openstack.org.

Test cases:

  1. Storage → PersistentVolumeClaims → Create PersistentVolumeClaim
  2. Select a Cinder CSI StorageClass
  3. Access mode options include "Read write once pod (RWOP)" alongside "Single user (RWO)"
  4. Create a PVC with RWOP / Filesystem and confirm it binds
  5. Repeat with volume mode Block
  6. Regression: Manila CSI access modes unchanged

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:
Related to #16866
Backport of #16870
Tests on main: #17105
4.22 backport: #17106

Reviewers and assignees:
/assign spadgett

The Create PVC form greys out RWOP for cinder.csi.openstack.org because
the static provisioner map listed only ReadWriteOnce. YAML already works
on OpenStack 4.20; add RWOP for Filesystem and Block, drop the duplicate
in-tree Cinder entry, and cover the mapping with unit tests.

Backport of openshift#16870. Related to openshift#16866.
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 29, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@kchawlani19: This pull request explicitly references no jira issue.

Details

In response to this:

Analysis / Root cause:
On OpenShift 4.20, the Create PersistentVolumeClaim form greys out ReadWriteOncePod for Cinder CSI. Allowed access modes come from a static map in frontend/public/components/storage/shared.ts; cinder.csi.openstack.org listed only ReadWriteOnce. Creating the same PVC via YAML works. Reported in #16866 against 4.20 IPI on OpenStack 18.

Solution description:
Backport of #16870 plus regression tests:

  • cinder.csi.openstack.org: add ReadWriteOncePod for Filesystem and Block
  • kubernetes.io/cinder: remove duplicate ReadWriteOncePod entries
  • unit tests for the provisioner access-mode helpers

Screenshots / screen recording:
N/A (access-mode dropdown option enablement)

Test setup:
OpenShift 4.20 on OpenStack with a StorageClass whose provisioner is cinder.csi.openstack.org.

Test cases:

  1. Storage → PersistentVolumeClaims → Create PersistentVolumeClaim
  2. Select a Cinder CSI StorageClass
  3. Access mode options include "Read write once pod (RWOP)" alongside "Single user (RWO)"
  4. Create a PVC with RWOP / Filesystem and confirm it binds
  5. Repeat with volume mode Block
  6. Regression: Manila CSI access modes unchanged

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:
Related to #16866
Backport of #16870
Tests on main: #17105
4.22 backport: #17106

Reviewers and assignees:
/assign spadgett

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai

coderabbitai Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor
Pre-merge checks: Passed 10

Check name Status Explanation
Stable And Deterministic Test Names Passed The custom check applies to Ginkgo test titles (It/Describe/Context/When). This PR is an openshift/console frontend change. Its tests are Jest specs in frontend/public/components/storage/tests/sha…
Test Structure And Quality Passed The check applies to Ginkgo test code. This PR does not add any Ginkgo tests. The repository is openshift/console, a TypeScript frontend. The only Ginkgo references are in go.sum, which is a transitiv…
Microshift Test Compatibility Passed The check applies only when the PR adds new Ginkgo e2e tests (It/Describe/Context/When). This PR is a frontend change in openshift/console. Its changes are TypeScript access-mode mapping updates in fr…
Single Node Openshift (Sno) Test Compatibility Passed The check is not applicable to this pull request. It targets new Ginkgo e2e tests (It/Describe/Context/When in Go test files). PR #17107 (openshift/console, release-4.20, author kchawlani19) is a fron…
Topology-Aware Scheduling Compatibility Passed The check is inapplicable to this pull request. It covers deployment manifests, operator code, and controllers that add or change scheduling constraints. PR #17107 (openshift/console, release-4.20, au…
Ote Binary Stdout Contract Passed The check "OTE Binary Stdout Contract" applies only to OpenShift Tests Extension Go binaries and their process-level code (main, init, TestMain, suite setup, top-level initializers). This PR is a fron…
Ipv6 And Disconnected Network Test Compatibility Passed The check applies only to new Ginkgo e2e tests (It, Describe, Context, When). This PR (openshift/console #17107, author kchawlani19) changes the frontend access-mode map in `frontend/public/components…
No-Weak-Crypto Passed The no-weak-crypto check looks for MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB usage, custom crypto, and non-constant-time secret comparison. What the PR changes: per its description and the visible code…
Container-Privileges Passed The container-privileges check flags privileged: true, hostPID, hostNetwork, hostIPC, SYS_ADMIN, root without justification, and allowPrivilegeEscalation: true in container or Kubernetes manifests. PR…
No-Sensitive-Data-In-Logs Passed The no-sensitive-data-in-logs check is applicable only if the PR adds logging statements. The PR changes the static access-mode map in frontend/public/components/storage/shared.ts. It adds `ReadWrit…
Full details: Stable And Deterministic Test Names

Explanation

The custom check applies to Ginkgo test titles (It/Describe/Context/When). This PR is an openshift/console frontend change. Its tests are Jest specs in frontend/public/components/storage/tests/shared.spec.ts, and the frontend has no Ginkgo imports (rg for ginkgo returned no frontend hits). The check is therefore not applicable to this PR. For completeness, the new Jest titles are static strings. Examples: "includes ReadWriteOncePod for Cinder CSI Filesystem", "does not enable RWOP for Manila CSI", and "falls back to all access modes for unknown provisioners". None contains pod names, timestamps, UUIDs, node names, namespace suffixes, IP addresses, or legacy openshift-tests-private metadata tokens. The same holds for the existing describe/it titles in the file. The result would be the same if the check were applied by analogy.

Full details: Test Structure And Quality

Explanation

The check applies to Ginkgo test code. This PR does not add any Ginkgo tests. The repository is openshift/console, a TypeScript frontend. The only Ginkgo references are in go.sum, which is a transitive dependency record and not a test suite. The PR's tests are Jest unit tests in frontend/public/components/storage/tests/shared.spec.ts. They cover getAccessModeForProvisioner, getProvisionerModeMapping, and getVolumeModeForProvisioner for cinder.csi.openstack.org. No new It() block uses ote.Informing(), and no Go or Ginkgo test files were changed. The Ginkgo-specific criteria (ote.Informing, BeforeEach/AfterEach cluster cleanup, Eventually/Consistently timeouts) therefore do not apply. The check is inapplicable, so it passes.

Full details: Microshift Test Compatibility

Explanation

The check applies only when the PR adds new Ginkgo e2e tests (It/Describe/Context/When). This PR is a frontend change in openshift/console. Its changes are TypeScript access-mode mapping updates in frontend/public/components/storage/shared.ts and Jest unit tests in frontend/public/components/storage/tests/shared.spec.ts. The spec file uses Jest-style expect(...).toEqual(...) assertions, not Ginkgo. Repository searches found no Ginkgo g.It/g.Describe usage outside vendored dependencies. The PR adds no Ginkgo e2e test, so no MicroShift compatibility concern is introduced. The check is inapplicable and passes.

Full details: Single Node Openshift (Sno) Test Compatibility

Explanation

The check is not applicable to this pull request. It targets new Ginkgo e2e tests (It/Describe/Context/When in Go test files). PR #17107 (openshift/console, release-4.20, author kchawlani19) is a frontend change. It edits the static access-mode map in frontend/public/components/storage/shared.ts. It adds Jest unit tests in frontend/public/components/storage/tests/shared.spec.ts, which cover the Cinder CSI and in-tree Cinder access-mode helpers. None of these are Ginkgo tests, and none assume a multi-node topology. The repository also contains no Ginkgo (github.com/onsi/ginkgo) Go test files. The PR's own test plan is a manual UI check, not an e2e suite. No SNO compatibility concern applies.

Full details: Topology-Aware Scheduling Compatibility

Explanation

The check is inapplicable to this pull request. It covers deployment manifests, operator code, and controllers that add or change scheduling constraints. PR #17107 (openshift/console, release-4.20, author kchawlani19) changes the console frontend. Per its title and description, it adds ReadWriteOncePod to the cinder.csi.openstack.org access-mode map in frontend/public/components/storage/shared.ts, removes duplicate kubernetes.io/cinder entries, and adds unit tests for the access-mode helpers. The description lists only these changes and does not mention manifests, operators, controllers, pod scheduling, anti-affinity, replica counts, tolerations, or PodDisruptionBudgets. Local inspection was limited. The sandbox checkout has a single root commit (ed56dcf, "NO-JIRA: Use literal Jest titles in Cinder CSI access-mode tests"), so the PR's own diff could not be isolated from history. The storage files present in the tree (shared.ts, create-pvc.tsx, attach-storage.tsx, tests/shared.spec.ts) are frontend files. No scheduling-related manifest or controller change was found. This verdict relies on the PR title and description for scope.

Full details: Ote Binary Stdout Contract

Explanation

The check "OTE Binary Stdout Contract" applies only to OpenShift Tests Extension Go binaries and their process-level code (main, init, TestMain, suite setup, top-level initializers). This PR is a frontend change in openshift/console. Its PR description and target file show the change is to the static access-mode map in frontend/public/components/storage/shared.ts, which adds ReadWriteOncePod for cinder.csi.openstack.org and removes duplicate entries for kubernetes.io/cinder. It also adds unit tests for TypeScript helpers. The repository has no OTE test binary entry point. The Go files found are the console backend (pkg/...) and vendored code. Its init() and TestMain hits do not concern this PR's changes, and the PR does not touch any Go code. No process-level stdout write is introduced, so the check is not applicable and no failure condition is met.

Full details: Ipv6 And Disconnected Network Test Compatibility

Explanation

The check applies only to new Ginkgo e2e tests (It, Describe, Context, When). This PR (openshift/console #17107, author kchawlani19) changes the frontend access-mode map in frontend/public/components/storage/shared.ts, which lists cinder.csi.openstack.org, and adds Jest unit tests for the Cinder CSI access-mode helpers. The PR description and the checked-out HEAD commit (ed56dcf6, "Use literal Jest titles in Cinder CSI access-mode tests") show no Go or Ginkgo test changes. A repository search found no github.com/onsi/ginkgo import anywhere. The Go files that exist (for example pkg/utils/net_test.go) are unchanged by this PR as far as the evidence shows. The check is not applicable, so it passes. Limitation: the release-4.20 base was not available in this checkout, so the full PR file list was not diffed. The HEAD commit inspection and the description both point to frontend-only changes.

Full details: No-Weak-Crypto

Explanation

The no-weak-crypto check looks for MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB usage, custom crypto, and non-constant-time secret comparison. What the PR changes: per its description and the visible code, the change adds ReadWriteOncePod to the cinder.csi.openstack.org access-mode map in frontend/public/components/storage/shared.ts, removes duplicate ReadWriteOncePod entries from kubernetes.io/cinder, and adds unit tests in frontend/public/components/storage/__tests__/shared.spec.ts. These are static UI access-mode lists and test titles. They contain no cryptographic primitives and no secret or token comparisons. Evidence gathered: - The local checkout has only shallow history, so I could not produce a full base-to-head diff. I scanned the storage component tree, including the __tests__ directory, for weak-crypto identifiers (md5, sha1, des, rc4, 3des, blowfish, ecb, createCipheriv, createHash). The only matches were in frontend/packages/console-telemetry-plugin/src/listeners/segment.ts, which is outside this PR's scope. Its SHA1 user-ID anonymization is pre-existing and was not changed here. The other matches were crypto.createHash('sha256') in Cypress config files and French locale strings, which are unrelated. - The added lines in the checked-out commit contain no crypto or secret-comparison code. Conclusion: the PR introduces no explicitly prohibited weak cryptography, custom crypto, or non-constant-time secret comparison.

Full details: Container-Privileges

Explanation

The container-privileges check flags privileged: true, hostPID, hostNetwork, hostIPC, SYS_ADMIN, root without justification, and allowPrivilegeEscalation: true in container or Kubernetes manifests. PR #17107 (openshift/console, base release-4.20, author kchawlani19) changes only frontend storage code: - frontend/public/components/storage/shared.ts: adds ReadWriteOncePod to the cinder.csi.openstack.org access-mode map and removes duplicate entries from the in-tree kubernetes.io/cinder entry. - frontend/public/components/storage/tests/shared.spec.ts: adds unit tests for the access-mode helpers. The PR description states the same scope. The repository checkout has no usable PR-base diff, because HEAD is a single commit that adds the whole tree. I therefore relied on the PR description and the grep of the storage files, which show only the access-mode map and its tests. No container or Kubernetes manifest in the PR sets any listed privilege field. Keyword hits elsewhere in the tree were checked and are not PR changes. Examples are privileged: true and hostPID/hostIPC/hostNetwork in frontend/packages/console-app/src/components/nodes/NodeTerminal.tsx, and privileged: true in a pipelines integration test fixture. These are pre-existing and outside the PR's changed files, so they do not establish a failure for this PR.

Full details: No-Sensitive-Data-In-Logs

Explanation

The no-sensitive-data-in-logs check is applicable only if the PR adds logging statements. The PR changes the static access-mode map in frontend/public/components/storage/shared.ts. It adds ReadWriteOncePod for cinder.csi.openstack.org and removes duplicate entries for kubernetes.io/cinder. It also adds unit tests in frontend/public/components/storage/__tests__/shared.spec.ts. A search of both files found no console.log, console.warn, console.error, console.info, or console.debug calls. The changed code adds no logging of passwords, tokens, PII, session IDs, hostnames, or customer data. The checkout contains only a squashed snapshot commit, so I verified the changed files by search rather than by a base-to-head diff. No failure condition applies.

@openshift-ci
openshift-ci Bot requested review from Leo6Leo and jhadvig August 29, 2026 14:35
@openshift-ci openshift-ci Bot added the component/core Related to console core functionality label Aug 29, 2026
Match the main-branch tests so jest/valid-title does not fail if this
branch picks up the newer ESLint rule.
@openshift-ci

openshift-ci Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kchawlani19
Once this PR has been reviewed and has the lgtm label, please ask for approval from spadgett. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci

openshift-ci Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

@kchawlani19: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-ci

openshift-ci Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

PRs go stale after 30d of inactivity.

Stale PRs eventually rot and close according to the repository's lifecycle policy.

If this PR is still relevant, comment to refresh it or remove the stale label.
Mark the PR as fresh by commenting /remove-lifecycle stale.

If this PR is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci Bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 20, 2026
@kchawlani19 kchawlani19 changed the title NO-JIRA: [release-4.20] Enable ReadWriteOncePod for Cinder CSI [release-4.20] OCPBUGS-145975: Enable ReadWriteOncePod for Cinder CSI Nov 24, 2026
@openshift-ci-robot openshift-ci-robot added the jira/severity-low Referenced Jira bug's severity is low for the branch this PR is targeting. label Nov 24, 2026
@kchawlani19

Copy link
Copy Markdown
Contributor Author

/remove-lifecycle stale

Reviewed against the merged main change in #16870. The mapping update is the same, and the new unit tests cover Cinder CSI, the in-tree duplicate, and the Manila regression. Frontend CI already passed.

Linking this backport to OCPBUGS-145975 (target 4.20.z). That bug depends on OCPBUGS-145965 (4.21.z), which depends on OCPBUGS-145947 (4.22.0). The 5.0 parent OCPBUGS-145946 is Verified because the fix is already in release-5.0.

/jira refresh

@openshift-ci-robot openshift-ci-robot added the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Nov 24, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@kchawlani19: This pull request references Jira Issue OCPBUGS-145975, which is invalid:

  • expected dependent Jira Issue OCPBUGS-145965 to be in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but it is New instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Analysis / Root cause:
On OpenShift 4.20, the Create PersistentVolumeClaim form greys out ReadWriteOncePod for Cinder CSI. Allowed access modes come from a static map in frontend/public/components/storage/shared.ts; cinder.csi.openstack.org listed only ReadWriteOnce. Creating the same PVC via YAML works. Reported in #16866 against 4.20 IPI on OpenStack 18.

Solution description:
Backport of #16870 plus regression tests:

  • cinder.csi.openstack.org: add ReadWriteOncePod for Filesystem and Block
  • kubernetes.io/cinder: remove duplicate ReadWriteOncePod entries
  • unit tests for the provisioner access-mode helpers

Screenshots / screen recording:
N/A (access-mode dropdown option enablement)

Test setup:
OpenShift 4.20 on OpenStack with a StorageClass whose provisioner is cinder.csi.openstack.org.

Test cases:

  1. Storage → PersistentVolumeClaims → Create PersistentVolumeClaim
  2. Select a Cinder CSI StorageClass
  3. Access mode options include "Read write once pod (RWOP)" alongside "Single user (RWO)"
  4. Create a PVC with RWOP / Filesystem and confirm it binds
  5. Repeat with volume mode Block
  6. Regression: Manila CSI access modes unchanged

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:
Related to #16866
Backport of #16870
Tests on main: #17105
4.22 backport: #17106

Reviewers and assignees:
/assign spadgett

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 24, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@kchawlani19: This pull request references Jira Issue OCPBUGS-145975, which is invalid:

  • expected dependent Jira Issue OCPBUGS-145965 to be in one of the following states: VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA), but it is New instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

/remove-lifecycle stale

Reviewed against the merged main change in #16870. The mapping update is the same, and the new unit tests cover Cinder CSI, the in-tree duplicate, and the Manila regression. Frontend CI already passed.

Linking this backport to OCPBUGS-145975 (target 4.20.z). That bug depends on OCPBUGS-145965 (4.21.z), which depends on OCPBUGS-145947 (4.22.0). The 5.0 parent OCPBUGS-145946 is Verified because the fix is already in release-5.0.

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/core Related to console core functionality jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. jira/severity-low Referenced Jira bug's severity is low for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants